import request from '@/utils/request'

// 获取单位数据
export function getTaskList(data) {
  return request({
    url: '/vue-element-admin/task/list',
    method: 'post',
    data
  });
}
// 获取单个流程数据
export function getTaskData(data) {
  return request({
    url: '/vue-element-admin/task/getData',
    method: 'post',
    data
  });
}
// 编辑
export function editTaskData(data) {
  return request({
    url: '/vue-element-admin/task/editData',
    method: 'post',
    data
  });
}
// 删除任务
export function delList(data) {
  return request({
    url: '/vue-element-admin/task/dellist',
    method: 'post',
    data
  });
}